package com.zyy.decorator;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/08/01 22:42
 */
public abstract class FastFood {
    private float price;
    private String desc;

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
    //抽象方法  获取价格
    public abstract float cost();
}
